home *** CD-ROM | disk | FTP | other *** search
/ Windows Expert / Windows Expert.iso / windownt / uupc11ys.zip / LIB / LOCK.H < prev    next >
C/C++ Source or Header  |  1993-03-06  |  1KB  |  29 lines

  1. /*--------------------------------------------------------------------*/
  2. /*    l o c k . c                                                     */
  3. /*                                                                    */
  4. /*    Locking functions for UUPC/extended                             */
  5. /*                                                                    */
  6. /*    Copyright (c) 1992 by Kendra Electronic Wonderworks; all        */
  7. /*    rights reserved except those explicitly granted by the          */
  8. /*    UUPC/extended license.                                          */
  9. /*--------------------------------------------------------------------*/
  10.  
  11. typedef struct {
  12.    char lname[FILENAME_MAX];
  13.    FILE *locket;
  14.    } LOCKSTACK;
  15.  
  16. extern boolean locked;
  17.  
  18. void UnlockSystem( void );
  19.  
  20. boolean LockSystem( const char *system , long program );
  21.  
  22. /*--------------------------------------------------------------------*/
  23. /*                   Allow an additional local lock                   */
  24. /*--------------------------------------------------------------------*/
  25.  
  26. void PushLock( LOCKSTACK *top );
  27.  
  28. void PopLock( LOCKSTACK *top );
  29.